package cn.net.sinodata.system.domain.bo;

import cn.idev.excel.annotation.ExcelProperty;
import cn.net.sinodata.system.domain.PmHolidayDescription;
import cn.net.sinodata.common.mybatis.core.domain.BaseEntity;
import cn.net.sinodata.common.core.validate.AddGroup;
import cn.net.sinodata.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 节假日描述业务对象 pm_holiday_description
 *
 * @author chenbaijun
 * @date 2025-11-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PmHolidayDescription.class, reverseConvertGenerate = false)
public class PmHolidayDescriptionBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 日期
     */
    @NotNull(message = "日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date holidayDate;

    /**
     * 币种编号
     */
    @NotBlank(message = "币种编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String currencyCode;

    /**
     * 币种名称
     */
    @NotBlank(message = "币种名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String currencyName;

    /**
     * 节假日类型（0-否 1-是）
     */
    @NotBlank(message = "节假日类型（0-否 1-是）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String holidayType;

    /**
     * 描述
     */
    private String description;

}
